

#include <QCoreApplication>
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
    double A, Temp1, Temp2;
    cout << "A= ";
    cin >> A;
    Temp1 = A * A;
    cout << "\nA^2=" << Temp1 <<endl;
    Temp2 = A * Temp1;
    cout << "A^4=" << Temp2 <<endl;
    Temp1 = Temp2 * (A * A);
    cout << "A^8=" << Temp1 <<endl;





    return (0);
}
